﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web;
using System.Web.Mvc;

namespace sipfe.model.validation
{
    public class CambioClaveModel
    {
       
        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Clave Actual")]
        [RegularExpression(@"^[0-9.,-_'#:a-zA-Z_!+&%\s*\s$\s]*$", ErrorMessage = "{0} Contiene Caracteres no válidos")]
        [Remote("ValidarClaveActual", "Utilitarios")]
        public string ClaveAnterior { get; set; }

        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Nueva Clave")]
        [RegularExpression(@"^[0-9.,-_'#:a-zA-Z_!+&%\s*\s$\s]*$", ErrorMessage = "{0} Contiene Caracteres no válidos")]
        public string NuevaClave { get; set; }

        [Required(ErrorMessage = "El campo {0} es obligatorio.")]
        [Display(Name = "Confirmar Nueva Clave")]
        [RegularExpression(@"^[0-9.,-_'#:a-zA-Z_!+&%\s*\s$\s]*$", ErrorMessage = "{0} Contiene Caracteres no válidos")]
        [Remote("ValidarNuevaClave", "Utilitarios", AdditionalFields = "NuevaClave")]
        public string ConfirmarClave { get; set; }

        public string CodigoUsuario { get; set; }
        public decimal NIdeUsu { get; set; }

       
        
       

    }
}
